import axios from 'axios'

axios.defaults.withCredentials = false
// const apiHost = {
//   name: 'dev',
//   dev: 'https://api.ylgxjs.com',
//   build: 'https://api.ylgxjs.com',
// }
let url='https://api.ylgxjs.com'
const ApiMixin = {
  async getOrderList(param) {
    try {
      const res = await axios.post(url+`/app/order/list/sub`, param)
      return res.data
    }
    catch (err) {

      return err
    }
  },


}
export default {
  methods: ApiMixin,
}
